<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/css/lists.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/css/common_header.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/css/common_bottom.css"/>
		<script type="text/javascript" src="<?php echo __PUBLIC__?>/jquery-1.7.2.min.js"></script>
	</head>
	<body>
	<!--引入公共头部-->
	<!--顶部登陆-->
	<div class="page_top_nav_long">
		<div class="page_top_nav">
			<!--顶部左边-->
			<ul class="page_top_nav_l">
				<li class="s-hw" style="background-image: none;padding-left: 0px;"><a href="index.html" style="padding-left: 0px;">华为官网</a></li>
			</ul>
			<!--顶部右边-->
			<ul class="page_top_nav_r">
				                
				<!--如果有登陆，才显示-->
				<li style="display: list-item;" class="s-user hide" id="login_status">
					<div class="s-dropdown">
						<div class="h">
							<a href="user.html" id="customer_name" rel="nofollow" timetype="timestamp" class="link-user">346269228@qq.com</a>
							 <em class="vip-state" id="vip-info">
								<a href="#" title="VMALL V0会员" id="vip-Active"><i class="icon-vip-level-0"></i>&nbsp;</a>
							</em>
							<s></s>
						</div>
						<div class="b">
							<p><a href="user.html"  id="user-center">我的华为帐号</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="http://127.0.0.1/testphp/Hdphp-huawei/index.php?m=Home&c=Login&a=out">退出</a></p>
						</div>
					</div>
				</li>
								<li>
					<a href="http://127.0.0.1/testphp/Hdphp-huawei/index.php?m=Home&c=User&a=index" class="page_top_nav_r_a">我的订单</a>
				</li>
			</ul>	
		</div>
	</div>
	<!--顶部登录结束-->
	<!--头部logo开始-->
	<div class="header_long">
		<div class="header">
			<!--logo-->
			<div class="logo">
				<a href="index.html"><img src="http://127.0.0.1/testphp/Hdphp-huawei/Public/Home/images/newLogo.png"/></a>
			</div>
			<!--搜索-->
			<div class="search">
				<div class="form_body">
					<form action="http://127.0.0.1/testphp/Hdphp-huawei/index.php?m=Home&c=Lists&a=search" method="post">
						<input type="text" name="name" id="search_text" value="" placeholder="iphone7"/>
						<input type="submit" value="搜索" id="searcg_botton"/>
					</form>
				</div>
			</div>
			<div class="header_toolbar">
				<div class="header_my_shop">
					<div class="i-mall">
						<div class="h">
							<a href="user.html">我的商城</a>
							<i></i>
							<s></s>
						</div>
					</div>
				</div>
				<div class="header_my_shoppingcar">
					<div class="h" id="header-toolbar-minicart-h">
						<a href="http://127.0.0.1/testphp/Hdphp-huawei/index.php?m=Home&c=Cart&a=index">我的购物车
																	<!--如果购物车里面有数据-->
																	<span><em id="header-cart-total">0</em><b></b></span>
													</a><i></i><s></s><u></u>
					</div>
					<div class="header-toolbar-minicart-content">
												<!--如果购物车是空的-->
					<div class="minicart-pro-empty" id="minicart-pro-empty">
						<span class="icon-minicart">您的购物车是空的，赶紧选购吧！</span>
					</div>
										</div>
				</div>
			</div>
		</div>
	</div>
	<!--头部logo结束-->
	<!--logo下面的导航-->
	<?php 
//	实例化
	$cateModel = new \Home\Common\Model\Category;
//	调用模型里面的方法，得到数组
	$cateData = $cateModel->getCate();
	 ?>
	<div class="navigation_long">
		<div class="navigation">
			<div class="navigation_l">
				<p>全部商品<i></i></p>
				<!--二级菜单-->
				<ul class="category_box_l">
					<?php foreach ($cateData as $second_v){?>
			<li class="category_item">
				<div class="category-info">
					<a href="<?php echo U('Lists/index',array('cid'=>$second_v['cid']))?>" class="category_title"><?php echo $second_v['cname']?></a>
					<?php foreach ($second_v['threeSon'] as $threeSon_v){?>
					<a href="<?php echo U('Lists/index',array('cid'=>$threeSon_v['cid']))?>" class="category_second"><?php echo $threeSon_v['cname']?></a>
					<?php }?>
				</div>
				<!--移入li右侧div-->
				<div class="category-panels">
					<ul class="subcate-list">
						<?php foreach ($second_v['son'] as $son_v){?>
						<li class="subcate-item">
							<a href="/list-75" target="_blank">
								<span><?php echo $son_v['cname']?></span>
							</a>
						</li>
						<?php }?>
					</ul>
				</div>
			</li>
			<?php }?>
		</ul>
		<!--二级菜单结束-->
			</div>
		<!--右侧-->
		<ul class="navigation_r">
			<li style="background: #BA181F;" class="navigation_r_hover">
				<a href="index.php">首页</a>
			</li>
			<?php foreach ($cateData as $nav_v){?>
			<li class="navigation_r_hover">
				<a href="<?php echo U('Lists/index',array('cid'=>$nav_v['cid']))?>" ><?php echo $nav_v['cname']?></a>
			</li>
			<?php }?>
		</ul>	
		</div>
	</div>
	<!--logo下面的导航结束-->
	<!--筛选区域 开始-->
	<div class="screening">
		<!--面包屑-->
		<div class="breadcrumb">
			
			<a href="index.php">首页</a> >
			<?php foreach ($mianbao as $mianbao_k=>$mianbao_v){?>
			<?php if($mianbao_k == 0) {?>
			<a href="<?php echo U('Lists/index',array('cid'=>$mianbao_v['cid']))?>"><?php echo $mianbao_v['cname']?></a>
			<?php }else{ ?>
				>
			<span><?php echo $mianbao_v['cname']?></span>
			<?php } ?>
			<?php }?>
		</div>
		<!--面包屑结束-->
		<!--筛选选项列表-->
		<div class="screening_lists">
			<!--商品分类  开始-->
			<div class="screening_lists_content">
				<!--分类-->
				<div class="screening_cate">
					<div class="p-title">分类：</div>
					<div class="p-default">
						<a href="<?php echo U('Lists/index',array('all'=>0,'cid'=>$sonData[0]['pid']))?>">全部</a>
					</div>
					<div class="p-values">
						<div class="p-expand">
							<ul>
								<?php foreach ($sonData as $cate_k=>$nav_v){?>
								<li>
									<a href="<?php echo U('Lists/index',array('cid'=>$nav_v['cid']))?>" <?php if(Q('get.cid',0,'intval')==$nav_v['cid']){?>
                 style="color: red;" 
               <?php }?>><?php echo $nav_v['cname']?></a>
								</li>
								<?php }?>
							</ul>	
						</div>
					</div>
				</div>
				<!--网络制式-->
				<?php foreach ($goodsAttr as $goodsAttr_k=>$goodsAttr_v){?>
				<div class="screening_cate">
					<div class="p-title"><?php echo $goodsAttr_v['name']?>：</div>
					<div class="p-default">
						<?php 
							$temp = $param;
							$temp[$goodsAttr_k] = 0;
						 ?>
						<a href="<?php echo U('Lists/index',array('cid'=>Q('get.cid',0,'intval'),'param'=>implode('_',$temp)))?>" <?php if($param[$goodsAttr_k]==0){?>
                style="color:red"
               <?php }?>>全部</a>
					</div>
					<div class="p-values">
						<div class="p-expand">
							<ul>
								<?php foreach ($goodsAttr_v['value'] as $gavalue){?>
								<li>
									<?php 
										$temp[$goodsAttr_k] = $gavalue['gaid'];
									 ?>
									<a href="<?php echo U('Lists/index',array('cid'=>Q('get.cid',0,'intval'),'param'=>implode('_',$temp)))?>" <?php if($param[$goodsAttr_k]==$gavalue['gaid']){?>
                style="color:red"
               <?php }?>><?php echo $gavalue['gavalue']?></a>
								</li>
								<?php }?>
							</ul>	
						</div>
					</div>
				</div>
				<?php }?>
			</div>
			<!--商品分类  结束-->
		</div>
		<!--筛选个选项列表结束-->
	</div>
	<!--筛选区域 结束-->
	<!--商品列表区域  开始-->
	<div class="goods_lists">
		<div class="lists_content">
			<ul>
				<?php foreach ($goodsData as $goods_v){?>
				<li>
					<div class="pro-panels">
						<p class="p-img"><a href="<?php echo U('Content/index',array('gid'=>$goods_v['gid'],'cid'=>Q('get.cid',0,'intval')))?>"><img src="<?php echo __ROOT__?>/<?php echo $goods_v['lists_pic']?>" alt="" /></a></p>
						<p class="p-name"><a href="<?php echo U('Content/index',array('gid'=>$goods_v['gid'],'cid'=>Q('get.cid',0,'intval')))?>"><?php echo $goods_v['gname']?></a></p>
						<p class="p-price"><b>¥<?php echo $goods_v['shop_price']?></b></p>
						<div class="p-button"><a href="javascript:;">加入购物车</a><span><?php echo $goods_v['click']?>人查看</span></div>
						<i></i>
					</div>
				</li>
				<?php }?>
			</ul>
		</div>
		<script type="text/javascript">
			$(function(){
				$('.box-close').click(function(){
					$('.ol_box_mask').hide();
					$('.ol_box_4').hide();
				})
			})
		</script>
		<!--******弹窗-->
		<div style="visibility: hidden; width: 1348px; height: 2459px; z-index: 500;" class="ol_box_mask"></div>
		<div class="ol_box_4" id="product-cart-box" style="visibility: hidden; position: fixed; top: 100.5px; left: 50%;margin-left: -214px; z-index: 500;"><div class="box-ct">	<div class="box-header">		<div class="box-tl"></div>		<div class="box-tc">			<div class="box-tc1"></div>			<div class="box-tc2"><a href="javascript:;" onclick="return false;" title="关闭" class="box-close"></a><span class="box-title"></span></div>		</div>		<div class="box-tr"></div>	</div>	<table style="table-layout:fixed;" border="0" cellpadding="0" cellspacing="0" width="100%">		<tbody><tr>						<td class="box-cc">				<div style="height: auto;" class="box-content"><div class="pro-add-success" style="margin:-14px -30px 0;">
	<dl>
		<dt><s></s></dt>
		<dd>
			<div id="cart-briefName" class="pro-add-success-name">华为 畅享5S</div>
			<div class="pro-add-success-msg">成功加入购物车!</div>
			<div class="pro-add-success-total">购物车中共&nbsp;<b id="cart-total">2</b>&nbsp;件商品，金额合计&nbsp;<b id="cart-price">2398.00</b></div>
			<div class="pro-add-success-button"><a href="javascript:;" class="box-ok button-style-1 button-go-cart" title="去购物车结算">去结算</a><a class="box-cancel button-style-4 button-walking" href="javascript:;" title="继续逛逛">继续逛逛&nbsp;&gt;&gt;</a></div>
		</dd>
	</dl>
</div>
</div>				<div style="display: none;" class="box-button">						<a class="box-ok" href="javascript:;"><span>确定</span></a>				<a class="box-cancel" href="javascript:;"><span>取消</span></a>				</div>			</td>					</tr>	</tbody></table>	<div class="box-bottom">		<div class="box-bl"></div>		<div class="box-bc"></div>		<div class="box-br"></div>	</div></div></div>
	</div>
	<!--******弹窗结束-->
	<!--商品列表区域 结束-->
	<!--引入公共底部-->
	<!--商城宣传-->
	<div class="slogan">
		<ul>
			<li style="width: 326px;"><i></i>500强企业 品质保证</li>
			<li style="width: 327px;"><i></i>7天退货 15天换货</li>
			<li><i></i>99元起免运费</li>
			<li style="float: right;"><i></i>448家维修网点 全国联保</li>
		</ul>
	</div>
	<!--底部友情链接-->
	<div class="footer">
		<div class="footer-otherLink">
			<p>友情链接： | 
				<a href="http://www.houdunwang.com">后盾网</a> | 
				<!--<a href="">华为消费者业务</a>
				<span>|</span>-->
			</p>
			<p></p>
			<p></p>
			<p></p>
			<p></p>
		</div>
		<div class="footer-warrant-area">
			<p>Copyright © 2011-2015  华为软件技术有限公司  版权所有  保留一切权利  苏B2-20130048号 | 苏ICP备09062682号-9</p>
			<p><a href="javascript:;">网络文化经营许可证苏网文[2012]0401-019号</a></p>
			<p class="footer-warrant-img">
				<a href=""><img src="http://127.0.0.1/testphp/Hdphp-huawei/Public/Home/images/certificate_01_112_40.png" alt="" /></a>
				<a href=""><img src="http://127.0.0.1/testphp/Hdphp-huawei/Public/Home/images/certificate_02_112_40.png" alt="" /></a>
				<a href=""><img src="http://127.0.0.1/testphp/Hdphp-huawei/Public/Home/images/certificate_03_112_40.png" alt="" /></a>
			</p>
		</div>
	</div>	
	<script type="text/javascript" src="http://127.0.0.1/testphp/Hdphp-huawei/Public/Home/js/BackTop.js"></script>
	<script type="text/javascript">
			$(function(){
				//插件使用
				$('.goTop').backTop({right:20});
			})
		</script>
	<div class="goTop">
		
	</div>
	</body>
</html>
